package unit.user;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.wo2record.user.model.UserLogin;
import com.wo2record.user.service.UserLoginService;

public class UserLoginTestUtil {
	public static UserLoginService getUserLoginService(){
		ApplicationContext ctx = new ClassPathXmlApplicationContext("app-context.xml");
		UserLoginService userLoginService = (UserLoginService)ctx.getBean("userLoginService");
		return userLoginService;
	}
	
	public static UserLogin makeUserLogin(String email){
		UserLogin ul = new UserLogin();
		ul.setLoginEmail(email);
		return ul;
	}
}
